<?php
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */


$gongdi = <<<GONGDI
{"title":"工地列表","type":"site","icon":"iconshigong","isDelete":true,"addNumber":1,"attr":[{"title":"栏目名称","type":"Input","name":"title"},{"title":"列表数量","type":"InputNumber","name":"number"},{"title":"是否显示动态","type":"Switch","name":"isShowTimeline"},{"title":"获取方式","type":"Radio","name":"getType","data":[{"label":2,"title":"自动"}]},{"title":"排序方式","type":"Select","name":"sort","data":[{"label":"综合排序","value":0},{"label":"按浏览量","value":1},{"label":"按收藏量","value":2}]}],"data":{"title":"工地列表","number":{"number":1,"min":1,"max":5},"isShowTimeline":true,"getType":2,"sort":0}}
GONGDI;
$anli = <<<ANLI
{"title":"案例列表","type":"case","icon":"iconanli1","isDelete":true,"addNumber":1,"attr":[{"title":"栏目名称","type":"Input","name":"title"},{"title":"列表数量","type":"InputNumber","name":"number"},{"title":"获取方式","type":"Radio","name":"getType","data":[{"label":2,"title":"自动"}]},{"title":"排序方式","type":"Select","name":"sort","data":[{"label":"综合排序","value":0},{"label":"按浏览量","value":1},{"label":"按收藏量","value":2}]}],"data":{"title":"案例列表","number":{"number":3,"min":1,"max":5},"isShowTimeline":true,"getType":2,"sort":0}}
ANLI;
$strategy = <<<STRATEGY
{"title":"攻略列表","type":"strategy","icon":"icongonglve1","isDelete":true,"addNumber":1,"attr":[{"title":"栏目名称","type":"Input","name":"title"},{"title":"列表数量","type":"InputNumber","name":"number"},{"title":"获取方式","type":"Radio","name":"getType","data":[{"label":2,"title":"自动"}]},{"title":"排序方式","type":"Select","name":"sort","data":[{"label":"综合排序","value":0},{"label":"按浏览量","value":1},{"label":"按收藏量","value":2}]}],"data":{"title":"攻略列表","number":{"number":3,"min":1,"max":5},"isShowTimeline":true,"getType":2,"sort":0}}
STRATEGY;

//模块组件 后台DIY页面的左侧
return [

    [
        "title" => "装修组件",
        'type' => 'zhuangxiuCompoent',
        'data' =>[
            json_decode($gongdi, true),
            json_decode($anli, true),
            json_decode($strategy, true),
        ]
    ],





];